/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-10-25
 * Time:22:11
 */
class Card2{
    public int rank;
    public String suit;
    public Card2(int rank,String suit){
        this.rank = rank;
        this.suit = suit;
    }
}
public class TestDemo2 {
    public static void main(String[] args) {
        Card2 c1 = new Card2(1,"♥");
        Card2 c2 = new Card2(1,"♥");
        Card2 c3 = c1;
//        System.out.println(c1 > c2);//编译报错
        System.out.println(c1 == c2);
//        System.out.println(c1 < c3);//编译报错
        System.out.println(c1 == c3);
    }
    public static void main1(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a > b);//flase
        System.out.println(a < b);//true
        System.out.println(a == b);//flase

        char c1 = 'A';
        char c2 = 'B';
        System.out.println(c1 > c2);//flase
        System.out.println(c1 < c2);//true
        System.out.println(c1 == c2);//flase

        boolean b1 = true;
        boolean b2 = false;
        System.out.println(b1 == b2);//flase
        System.out.println(b1 != b2);//true
    }
}
